﻿<%@ Page Language="C#" MasterPageFile="~/master.master" AutoEventWireup="true" CodeFile="Users.aspx.cs"
    Inherits="Users" %>

<asp:Content ContentPlaceHolderID="TitleContentPlaceHolder" runat="server" ID="TitleContent">
    <asp:Literal runat="server" ID="PageTitle"></asp:Literal>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    <link href="Styles/liveKora_Login_Client.css" rel="stylesheet" type="text/css" />
    <link href="Styles/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery.validate.min.js" type="text/javascript"></script>
    <script src="Scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="div_GoogleAds" style="position: absolute; right: 10px;">
        <script type="text/javascript"><!--
            google_ad_client = "ca-pub-8724688346081785";
            /* DefaultPage_Right */
            google_ad_slot = "5149661751";
            google_ad_width = 160;
            google_ad_height = 600;
            //-->
        </script>
        <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
        </script>
    </div>
    <div id="middle">
        <div id="left" style="width: 605px; padding-bottom: 50px !important; height: 30px !important;">
            <div id="page">
                <div id="post-1309" class="post-1309 page type-page status-publish hentry">
                    <div class="active">
                        <h1>
                            إتصل بنا</h1>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div>
        <div id="WideCol">
            <div class="projects" id="div_NotLogin">
                <div class="projectsList">
                    <div class="Login_R">
                        <!---------------Start FaceBookLink-------------------------->
                        <!--------------- End FaceBookLink-------------------------->
                        <div class="Login" id="loginDV" style="width: 44%!important;">
                            <h2 class="LogTit">
                                تسجيل الدخول</h2>
                            <div class="LogDiv">
                                <p>
                                    <label>
                                        <label for="UserName">
                                            اسم المستخدم</label>
                                    </label>
                                    <input class="text-box single-line" data-val="true" data-val-required="من فضلك أدخل اسم المستخدم"
                                        id="UserName" name="UserName" type="text" value="" />
                                </p>
                                <p>
                                    <label>
                                        <label for="Password">
                                            كلمة المرور</label>
                                    </label>
                                    <input class="Input2" data-val="true" data-val-required="من فضلك أدخل كلمة المرور"
                                        id="Password" name="Password" type="password" />
                                    <span class="validation"><span class="field-validation-valid" data-valmsg-for="Password"
                                        data-valmsg-replace="true"></span></span>
                                </p>
                                <div class="clear">
                                </div>
                                <span class="validation"><span class="field-validation-valid" data-valmsg-for="UserName"
                                    data-valmsg-replace="true"></span></span>
                                <input type="submit" value="دخول" name="commit" id="user_session_submit" class="btnz" />
                            </div>
                            <div style="height: 10px; clear: both;">
                            </div>
                            <div class="LogL">
                                <div class="SaveM">
                                    <input class="loginCheck" data-val="true" data-val-required="The تذكرنى field is required."
                                        id="RememberMe" name="RememberMe" type="checkbox" value="true" /><input name="RememberMe"
                                            type="hidden" value="false" />
                                    <span>
                                        <label for="RememberMe">
                                            تذكرنى</label></span>
                                </div>
                                <a class="localize" href="/account/resetpassword">نسيت كلمة المرور</a>
                            </div>
                        </div>
                    </div>
                    <div class="Rig_L">
                        <div class="Registration Login" id="registerDV">
                            <h2 class="LogTit">
                                إشتراك جديد</h2>
                            <div class="LogDiv">
                                <p>
                                    <label>
                                        <label for="UserName">
                                            اسم المستخدم</label>
                                    </label>
                                    <input class="text-box single-line" data-val="true" data-val-required="من فضلك أدخل اسم المستخدم"
                                        id="txtUserFullName" runat="server" name="UserName" type="text" value="" />
                                    <span class="validation">
                                        <asp:RequiredFieldValidator ID="rfvUserName" ControlToValidate="txtUserFullName"
                                            runat="server" ErrorMessage="من فضلك أدخل اسم المستخدم"></asp:RequiredFieldValidator>
                                    </span>
                                </p>
                                <p>
                                    <label>
                                        <label for="Email">
                                            البريد الالكترونى</label>
                                    </label>
                                    <asp:TextBox  CssClass="Input2"  ID="txtUserEmailAddress" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                        ErrorMessage="RequiredFieldValidator" ControlToValidate="txtUserEmailAddress" 
                                        Display="Dynamic"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                        ErrorMessage="RegularExpressionValidator" 
                                        ControlToValidate="txtUserEmailAddress" Display="Dynamic" 
                                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                </p>
                                <p>
                                    <label>
                                        <label for="Password">
                                            كلمة المرور</label>
                                    </label>
                                    <input class="Input2" data-val="true" data-val-required="من فضلك أدخل كلمة المرور"
                                        id="txtUserPassword" runat="server" name="Password" type="password" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" Display="Dynamic" ControlToValidate="txtConfirmPasswword"
                                        runat="server" ErrorMessage="من فضلك أدخل كلمة المرور"></asp:RequiredFieldValidator>
                                    <asp:CompareValidator ID="CompareValidator1" runat="server"  Display="Dynamic"
                                        ErrorMessage="الرجاء التأكد من تطابق كلمة المرور و تأكيد كلمة المرور" ControlToCompare="txtUserPassword" 
                                        ControlToValidate="txtConfirmPasswword"></asp:CompareValidator>

                                </p>
                                <p>
                                    <label>
                                        <label for="ConfirmPassword">
                                            تأكيد كلمة المرور</label>
                                    </label>
                                    <input class="Input2" id="txtConfirmPasswword" runat="server" name="Password" type="password" />
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" Display="Dynamic" ControlToValidate="txtConfirmPasswword"
                                        runat="server" ErrorMessage="من فضلك أدخل كلمة المرور"></asp:RequiredFieldValidator>
                                </p>
                                <!--------------- Start CAPTCHA-------------------------->
                                <!--------------- End CAPTCHA-------------------------->
                                <div class="clear">
                                </div>
                                <asp:Button ID="btnRegisterNewUser" runat="server" Text="تسجيل" CssClass="btnz" OnClick="btnRegisterNewUser_Click" />
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="projects" id="div_UserLogin">
            </div>
        </div>
    </div>
    <%--<script type="text/javascript">
        function funRegisterUserClick() {
            var userName = document.getElementById("ctl00_ContentPlaceHolder1_txtUserFullName").value;
            var emailAddress = document.getElementById("ctl00_ContentPlaceHolder1_txtUserEmailAddress").value;
            var password = document.getElementById("ctl00_ContentPlaceHolder1_txtUserPassword").value;
            RegsiterUsers(userName, emailAddress, password);
        }
        function RegsiterUsers(userFullName, userEmailAddress, password) {
            PageMethods.RegisterUser(userFullName, userEmailAddress, password, OnRegsiterUsersDone, OnRegsiterUsersError);
        }
        function OnRegsiterUsersDone(result) {
            if (result == "1") {
            }
            else {
            }
        }
        function OnRegsiterUsersError(result) {
            alert("Contact The Sys Admin");
        }
    </script>--%>
</asp:Content>
